Apparatus and method for demonstrating and confirming the status of digital certificates and other data

ABSTRACT

Methods and apparatuses for providing cryptographic assurance based on ranges as to whether a particular data item is on a list. According to one computer-implemented method, the items on the list are sorted and ranges are derived from adjacent pairs of data items on the list. Next, cryptographically manipulated data is generated from the plurality of ranges. At least parts of the cryptographically manipulated data is transmitted onto a network for use in cryptographically demonstrating whether any given data item is on the list. According to another computer-implemented method, a request message is received requesting whether a given data item is on a list of data items. In response, a range is selected that is derived from the pair of data items on the list that define the smallest range that includes the given data item. A response message is transmitted that cryptographically demonstrates whether the first data item is on the list using cryptographically manipulated data derived from the range. According to another computer-implemented method, a request message requesting an indication as to whether a first data item is on a list of data items is transmitted. In response, a message is received that cryptographically demonstrates whether the first data item is on the list, where the response message identifies a range that is derived from the pair of data items on the list that defines the smallest range that includes the first data item.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No. 09/511,645, filed Feb. 22, 2000 now U.S. Pat. No. 6,901,509, which is a continuation of U.S. patent application Ser. No. 09/103,656 filed Jun. 23, 1998, now issued as U.S. Pat. No. 6,532,540, which is a divisional of U.S. patent application Ser. No. 08/645,759, filed May 14, 1996, now U.S. Pat. No. 5,903,651, from which this application claims priority, and all of which are incorporated by reference.

FIELD OF THE INVENTION

This invention relates generally to data security, information security, and cryptography, and specifically to systems for constructing digitally-signed lists and determining whether particular values are present on such lists. The invention has specific application to revocation of digital certificates or other types of digital data items and for determining whether such data items have been revoked.

DESCRIPTION OF THE BACKGROUND ART

Asymmetric (public key) cryptologic techniques are widely used in security protocols for applications such as secure e-mail, electronic commerce, encrypted voice and video communications, and security on the World Wide Web. The RSA cryptosystem, described in U.S. Pat. No. 4,405,829 to Rivest et al (1983), and the Digital Signature Algorithm (DSA), described in U.S. Pat. No. 5,231,668, to Kravitz, are examples of asymmetric functions. Asymmetric cryptosystems systems typically involve a secret private key, which is used for digital signing or decryption, and a non-confidential public key derived from the private key, which is used for signature verification or encryption. For general information about RSA, DSA, and other asymmetric cryptosystems, the reader is referred to Applied Cryptography.

Before using a public key to encrypt a confidential message or verify a signature, a party in an electronic communications protocol generally must confirm the identity of the party holding the private key. An electronic communications protocol defines conventions allowing two or more computers or other electronic devices to exchange digital data or messages via a communications channel. Without such confirmation, an attacker could substitute a legitimate public key with another for which the attacker knows the private key. Digital certificates are the most common solution to this problem. The holder of the private key provides its corresponding public key to a widely-trusted Certificate Authority (CA) along with acceptable identification. The CA then issues a certificate, which typically consists of a digital signature on a specially-formatted block of data containing the user's name, the user's public key, the certificate issuance and expiration dates, and the certificate serial number. The recipient of a digital certificate who trusts the issuing CA can use the CA's (already trusted) public key to verify the signature. If the signature is valid and if the CA is trustworthy, the recipient can trust that the person identified in the certificate holds the private key corresponding to the public key in the certificate. The ISO 9594-8 standard defines techniques and data formats for computing and verifying digital signatures and certificates.

Certificates often need to be revoked due to unexpected events such as compromise, theft, or loss of the device containing the private key. A certificate might also need to be revoked if a user has lost the privileges granted by the certificate. In general, a certificate's status might be good, revoked, or pending, as well as other possibilities that will be appreciated by those skilled in the art.

In large open networks such as the Internet, certificate status determination, specifically certificate revocation, presents enormous challenges. The Internet is expected to have hundreds of millions of users worldwide soon. It is desirable that certificate revocation messages propagate as quickly as possible to all users who might otherwise accept the invalid certificate. Thus, there are difficult design constraints which a successful system must satisfy:

-   1. Network applications are sensitive to latency. A good solution     should minimize the number of additional network connections and     data exchanges required. -   2. The system must work on a global scale and work on a broad range     of systems with different levels of connectivity. -   3. The system must be distributable so that critical information can     be cached in many locations at once to minimize the number of     long-distance network connections. -   4. The system must be cryptographically secure.

Previous certificate revocation mechanisms, such as ISO 9594-8, use a type of digitally-signed structure called a Certificate Revocation List (CRL) which is issued periodically by the CA and lists the serial numbers of certificates issued by the CA which have been revoked. FIG. 1 shows the structure of a typical CRL 101, which consists of the issuer's name, a field identifying the signature algorithm, the date and time of issuance, and a list of revoked certificates, followed by a digital signature of the above information. To determine if a particular certificate is revoked, one obtains an up-to-date CRL from the appropriate CA, verifies that the digital signature in the CRL is valid, then searches the list of revoked certificates to determine whether the certificate in question is revoked. If the certificate is not on the list, it is assumed to be valid.

Because the complete CRL must be obtained and verified to determine the revocation status of a single certificate, CRLs do not scale well to large networks. In particular, existing certificate revocation mechanisms suffer from a number of disadvantages:

-   (a) CRLs can become extremely large, making them inefficient to     transmit or process. For example, a very large system might have     several million revoked certificates, resulting in CRLs which are     many megabytes in size. To determine whether a particular     certificate is valid, one must download a recent CRL in its entirety     and process the entire list to verify the digital signature. For a     large network, the required network bandwidth can be prohibitively     large, especially if every user needs to download new CRLs often.     The time required to process a large list can also be an issue. -   (b) Only mechanisms recognized and supported by the certificate     recipient can be used to revoke certificates. In most cases, only     revocations issued by the CA are accepted. Additional revocation     mechanisms cannot be added easily. -   (c) Because CAs are entrusted with both certificate issuance and     revocation, physical destruction of a CA's private key could result     in a situation where certificates could no longer be revoked without     revoking the CA's public key. -   (d) Verifiers must be able to obtain up-to-date CRLs from every     supported CA. Certificate chaining makes this particularly difficult     since there can easily be an extremely large number of CAs and     multiple CAs per certificate chain.

Present techniques for determining whether types of data other than certificates are present on digitally-signed lists suffer from the same scalability problems. On large networks such as the Internet such systems will typically suffer from poor latency and extremely large bandwidth requirements. These limitations arise because existing techniques either require active network connections to a trusted server at transaction time or require replication of CRLs or other digitally-signed lists containing all elements of the list.

SUMMARY OF THE INVENTION

Accordingly, it is an object of the invention to greatly reduce the processing effort, network bandwidth, network latency, data storage, and data replication requirements needed to determine whether a particular certificate has been revoked. In particular, the invention allows certificate status to be determined without knowledge of the entire list of revoked certificates and without having to search the entire list of revoked certificates.

Another object of the invention is to simplify the addition of new revocation mechanisms, such as revocation by certificate holders, without altering existing revocation mechanisms.

Another object of the invention is to allow revocations from many CAs to be included efficiently in a single database, thereby allowing a single trusted source for certificate revocation messages.

Another object of the invention is to provide a certificate revocation system whose operation is open to public scrutiny to ensure that certificates are not maliciously revoked and that revoked certificates are not marked as valid.

In general, the invention can be used to determine whether data items of any type are present on a digitally-signed list without requiring that the verifier retrieve the entire list. It should be readily apparent to a reader skilled in the art that the problem of determining securely whether a data item belongs to a list of data items has applications to many problems beyond certificate revocation. For example, an Internet user might want to determine whether a digitally-signed Java application has been revoked as having harmful side effects.

Briefly, the present invention typically includes at least one tree issuing device, one or more confirmation issuers, and at least one verification device.

The tree issuing device assembles a list of data items, which can have any content but would typically be a list of serial numbers identifying revoked digital certificates. The issuer sorts the list, optionally removes any duplicate entries, then adds a beginning-of-list marker and an end-of-list marker. Each pair of adjacent entries in this sorted list specifies a range between which there are no list entries. Except for the beginning and end markers, each list entry appears in two ranges, once as a minimum value and once as a maximum value. A hash tree is then constructed where leaf nodes correspond to ranges in the list. Because the tree's leaf nodes define intervals, this structure is referred to as an interval hash tree. A binary tree such as those described in U.S. Pat. No. 4,309,569 to Merkle (1982) would typically be used, but those skilled in the art will appreciate that a variety of other hash tree structures are also suitable (for example, as described in U.S. Pat. No. 4,881,264 to Merkle (1989)). Merkle uses hash trees to reduce the cost per signature when computing a large number of digital signatures by combining a large number of items into a single root node which can be digitally signed. Merkle's hash tree techniques produce assurances that particular items have been digitally signed. However, Merkle's hash trees do not provide the capability disclosed herein, of cryptographically demonstrating that particular items were not included in the tree (except in the highly inefficient case where the verifier obtains the entire tree and searches it for the particular candidate item).

The tree issuing device digitally signs the tree's root node (or nodes, if the chosen tree structure has multiple roots) with other data which would typically identify the issuer's identity and the date and time.

A confirmation issuer obtains the hash tree including the root node digital signature. The tree may be obtained either separately from, or together with, its digitally signed root. In the latter case, the hash tree shall be considered to include its digitally signed root(s). These values could be obtained directly from the tree issuer, be computed independently, or be obtained from other sources. The confirmation issuer can be the same device as the tree issuer, or could be an independent device connected to the tree issuer via a communications channel. Confirmation issuers might also be included in devices including, but not limited to, network servers, firewalls, or directory servers and might be assigned to serve a particular region of a network or subnetwork.

The verification device (verifier) begins with a “candidate data item” whose status on the list is to be determined. The verifier sends the candidate data item (or a representation thereof) to the confirmation issuer. The confirmation issuer locates a leaf node whose minimum range value is no larger than the candidate data item and whose maximum range value is no smaller than the candidate data item. The confirmation issuer then sends the verifier the appropriate range, the digitally-signed root node, and the additional nodes needed to cryptographically derive the root node from the leaf node. By cryptographically determining that the particular leaf can be used to reconstruct the root node, the verifier gains cryptographic assurance that the leaf was part of the original tree whose root node was digitally signed. The leaf is said to be cryptographically bound to the root. Note that the confirmation issuer does not need a private key, or knowledge of tree issuer's private key, since it does not generate any new digital signatures.

The verifier confirms that the signature on the header is correct and comes from a trusted tree issuer; that the date, name, and other information included in the root node digital signature are appropriate; that the root node can be constructed from the leaf node using the specified supporting nodes; and that the candidate data item is within the range specified by the given leaf node. If any of the above verification steps fail, the assurance is bad and item's status on the list cannot be determined. If the verification steps are successful and either range endpoint equals the data item, the verifier has cryptographic assurance that the data item is present on the list. If the smaller range endpoint is less than the data item and the larger endpoint is larger than the item, the verifier has cryptographic assurance that the item is not present on the list.

In addition to the embodiments described above, another illustrated embodiment does not use ranges, but rather uses a hash tree constructed from a sorted list of data items such that two adjacent leaves spanning a candidate data item provide cryptographic assurance that the candidate data item is not present on the list. Yet another illustrated embodiment does not use ranges, but rather uses the hash tree to build digitally signed assertions that specific items are not on the list. Still another illustrated embodiment does not use hash trees, but rather uses individually signed ranges.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows the contents of a traditional certificate revocation list which does not use the present invention.

FIG. 2 shows an exemplary technique for preprocessing data items.

FIG. 3 show a particular preprocessing technique appropriate for digital certificates.

FIG. 4 shows the construction of a set of ranges from a list of data items.

FIG. 5 shows a set of ranges made from a sorted list of data items.

FIG. 6 shows the structure of a binary interval hash tree made from a list containing six ranges.

FIG. 7 is a flowchart showing steps to construct an interval hash tree from a set of ranges.

FIG. 8 shows a degenerate interval hash tree.

FIG. 9 shows the contents of a digitally-signed root node.

FIG. 10 shows an alternate embodiment of the invention, without a hash tree, in which the individual ranges are signed directly.

FIG. 11 shows the steps taken by the confirmation issuer to issue a confirmation for a specified candidate item.

FIG. 12 is a flowchart showing steps to construct a list of supporting nodes cryptographically binding a leaf node to the root node.

FIG. 13 shows the steps typically taken by the verifier to determine whether a confirmation message provides acceptable cryptographic proof of the status of an item.

FIG. 14 is a flowchart showing how to use a set of supporting nodes to verify the cryptographic binding between a leaf node and the root node.

FIG. 15 outlines the operation of a communications system which a certificate holder uses to obtain confirmation. messages which it provides to certificate acceptors as cryptographically-secure evidence that the certificate has not been revoked.

DETAILED DESCRIPTION OF THE INVENTION

Methods and apparatuses are disclosed for constructing efficient cryptographically secure assertions as to whether candidate item are present on a list. In one embodiment of the invention, data items on the list are converted into a set of ranges having data items as endpoints such that there are no data items on the list between the endpoints of any range. The ranges are used as leaf nodes. to construct a hash tree, then the tree's root node is digitally signed by the tree issuer. A verifier can determine the validity of a leaf node by checking the path from the leaf to the root node and by checking the digital signature on the root node. A valid leaf node with a range endpoint equal to a candidate data item provides cryptographic assurance that the candidate data item is present on the list. A valid leaf node with one range endpoint larger than the candidate data item and one range endpoint smaller than the candidate data item provides cryptographic assurance that the candidate data item is not on the list.

Hash Tree Construction and Issuance

For certain kinds of data items, preprocessing using a collision-free function (CFF) may be performed before the data items are used for tree construction. A CFF is a function for which it is believed to be computationally unfeasible to find two different messages X and Y such that CFF(X)=CFF(Y). The identity function I(X)=X is a CFF and may be used, although for larger data items a cryptographic hash function is generally more efficient. Cryptographic hash functions include SHA or MD5 and are used to reduce the size of messages (i.e. the size of H(X) is less than the size of X) yet H(X) is cryptographically collision-free. The exemplary preprocessing technique shown in FIG. 2 uses a cryptographic hash function to reduce the size of the items. Each data item 201 is hashed at step 202 to produce a fixed-length processed item 203. For example, if the data item consisted of a CA name (“Sample CA”) followed by a four-byte serial number (decimal 123456789 with hexadecimal representation 07 5CD 15), the processed item might be SHA(“Sample CA” .vertline. 07 5B CD 15), where “.vertline.” denotes concatenation, or:

-   -   9D 76 7D 83 1D 85 A2 A8 35 95 08 DB 91 F2 AA DC D8 DD C4 AD.

Data items of specific types may use different kinds of preprocessing. FIG. 3 illustrates a particular preprocessing technique appropriate for data items such as digital certificates. The certificate issuer name 301 is hashed at step 303, and at step 304, the hashed issuer name is concatenated with the certificate serial number 302 to produce the processed digital certificate 305. (The serial number could also be hashed before concatenation.) For example, a certificate with a 32-bit (4-byte) serial number 123456789 whose CA name is “Sample CA” would have a 24-byte list entry consisting of SHA (“Sample CA”) followed by the byte representation of 123456789. In particular, the hexadecimal representation would be:

-   -   E2 CA 64 56 40 BE 99 AC CA 9D 3A 9B 02 97 0D 1E F2 95 8E A0 07         5B CD 15

FIG. 4 shows one way to use a computer to convert the set of preprocessed data items into a set of ranges. At step 401, the data items are assembled into a list stored in a computer-readable memory, which is then sorted in ascending order at step 402. At step 403, markers are added to denote the beginning and end of the list. If the data items consist of a 160-bit SHA output, the beginning-of-list marker might consist of 160 zero bits, and the end-of-list marker might consist of 160 one bits. Every pair of adjacent list entries then defines a range where the list entries are the range endpoints. There are no entries on the list which lie between these endpoints (if a value between the endpoints was present on the list, the sorting operation would have placed it between the range endpoints and the range endpoints would thus no longer be adjacent on the sorted list). At step 404, a data structure is constructed specifying the range, typically encoding the range as the minimum (the lesser of the two list entries) and the range maximum (the greater list entry). Other formats for the range data structure are also possible, such as a range endpoint and length, a range midpoint and length, etc. Ranges can also be broken into subranges, although in this case range endpoints would not necessarily correspond to data items on the list. In some cases it is helpful to add additional markers in places other than the beginning and end of the list. For example, if the digital certificate preprocessing technique of FIG. 3 is used and certificates from multiple certificate issuers are present on the list, additional markers might be placed at the beginning and end of the list region corresponding to each certificate issuer. Ranges would only be issued within regions belonging to supported CAs. In general, additional start and stop signals are helpful to define ranges excluded from the list or which are otherwise noteworthy.

If the initial data set contains n data items, there. will be n+2 entries in the sorted list due to the addition of the beginning and end markers. There are n+1 possible pairs of adjacent entries in the sorted list, so there will be n+1 range structures. FIG. 5 shows a set of ranges constructed from a sorted list 501 of five data items I.sub.0 . . . I.sub.4. The first range 502 goes from the beginning-of-list marker to the first data item, I.sub.0. The next range 503 goes from I.sub.0 to I.sub.1. Subsequent ranges 504 are I.sub.1-I.sub.2, I.sub.2-I.sub.3, and I.sub.3-I.sub.4. The final range 505 is I.sub.4 through the end-of-list marker.

A hash tree is then built from the sorted list of ranges. A hash tree is a hierarchical data structure comprising a plurality of leaf nodes combined using a cryptographic function to form a lesser number of root nodes such that using one or more applications of the cryptographic hash function it is possible to cryptographically transform any leaf node into a root node. A hash tree where the leaves are intervals (ranges) is called an interval hash tree.

FIG. 6 shows the structure of a binary interval hash tree built using a set of six ranges 601. The ranges are optionally transformed using a collision-free function to form the tree's leaf nodes 602. The leaf nodes are then combined using a cryptographic hash function to form levels of intermediate nodes 603 and a single root node 604.

FIG. 7 describes the steps required to use a computer to construct a binary interval hash tree given a set of n leaf nodes N.sub.0,0 . . . N.sub.0,n−1 stored in a computer readable memory. At step 701, the variable n is initialized to the number of leaf nodes and the tree level counter x is initialized to zero. At step 702, the variable y is initialized to zero. At step 703, the device determines whether two times y is smaller than n−1. If so, at least two more nodes are present at the current level x and, at step 704, these are concatenated (as denoted by the symbol “.vertline.”) and combined with a cryptographic hash function to produce one level x+1 node. At step 705 y is updated then the computer returns to step 703. If the comparison at step 703 is not true, the computer determines at step 706 whether a single level x node remains. If so, the node is simply copied at step 707 to level x+1. The level x+1 nodes are now complete, so at step 708 the device adds one to x so that the next level of nodes can be done. Step 708 also replaces n with the number of nodes in the new level by dividing by 2 while rounding upward. At step 709. the device then determines whether more than one node remains. If so, it returns to step 702. otherwise the device finishes at step 710, returning the root node which is node N.sub.x,0.

Although the preferred embodiment uses binary trees (see, e.g., U.S. Pat. No. 4,309,569 to Merkle (1982)), other tree structures are also possible. Variant tree structures, such as those having more than one root node, which combine more than two nodes at once, or which otherwise deviate from the binary tree are called degenerate trees. In some situations it may be desirable to have multiple roots. since this can shorten the paths from leaves to roots. FIG. 8 shows an example of a degenerate tree in which groups of three nodes 801 (instead of two) are combined, a level x node 802. (i.e., N.sub.1,1) is used in computing more than one level x+1 nodes 802 (e.g., N.sub.2,0 and N.sub.2,1), and there are two root nodes 803 and 804. It will be apparent to one skilled in the art that a wide variety of degenerate tree structures can be constructed. For example, U.S. Pat. No. 4,881,264 to Merkle (1989) describes several degenerate hash tree structures which may be used in connection with the present invention.

Referring to FIG. 9, after constructing the hash tree, the tree issuer uses RSA, DSA, or another signature algorithm to digitally sign the tree's root node 901, the date and time of the tree's issuance 902, the date and time of the next issuance (optional) 903, and the total number of nodes in the tree 904. The structure might also include other information, for example (but not limited to) the signing algorithm identifier, the tree issuer's name, and the root node of the previous tree.

To summarize, the tree issuer thus performs the following steps:

-   1. Construct the list of items, -   2. Convert list into a set of ranges, -   3. Build an interval hash tree from the ranges, -   4. Digitally sign the hash tree's root node, and -   5. Publish the hash tree and signed root node.

The foregoing illustrates the preferred embodiment of the invention in which hash trees are used. Alternatively, FIG. 10 shows a treeless variant in which the individual ranges 1001 are signed directly at 1002 to produce a set of signed ranges 1003.

Confirmation Issuance

Corresponding to the embodiments of the invention disclosed in FIGS. 2-9, FIG. 11 outlines a process for issuing cryptographic assurances as to whether specific items are on a list. The list is the plurality of data items used to generate the ranges for an interval hash tree, and the confirmation will directly demonstrate whether a candidate data item belongs to the plurality of items (i.e., is present on the list). At step 1101, the confirmation issuer first obtains the interval hash tree (or information allowing the confirmation issuer to construct at least the required portions of the tree) along with its digitally signed root node. At step 1102, the confirmation issuer receives a candidate data item for which the confirmation is to be constructed. At step 1103, the confirmation issuer performs any required preprocessing steps. At step 1104, the confirmation issuer identifies a leaf node representative of the candidate item. In one embodiment of the invention, the identified leaf node has a lesser range endpoint which is no larger than the candidate item and a larger range endpoint which is no smaller than the candidate item. Next, at step 1105, a list is made specifying the intermediate nodes needed to cryptographically reconstruct the path binding the leaf to the root node (FIG. 12 describes in detail the steps required to locate the appropriate intermediate nodes). At step 1106, the final confirmation including the contents of the range that spans the candidate data item, the number of the specified leaf node in the tree, the additional nodes which cryptographically bind the leaf to the root node, and the digitally-signed root node, is produced. Note that the confirmation does not include the entire list of data items represented by the leaf nodes of the interval hash tree. Finally, at step 1107, the confirmation issuer issues the confirmation to the party requesting it. The requesting party may be either a party wishing to know the status of the candidate item, or it may be an intermediate in a communications channel. For example, the requesting party might be the owner of a certificate which will store the confirmation and supply it to any other parties which want to verify the status of its certificate. In this case, the confirmation is communicated by the confirmation issuer to the verifier via the certificate holder. Alternatively, the confirmation might be requested by the party which wishes to verify the certificate's status.

FIG. 12 describes steps to find the intermediate nodes needed to cryptographically bind a leaf node (N.sub.0,i) to the root node of a binary interval hash tree. The process begins at step 1201 by setting node counter n to the total number of leaf nodes in the tree and i to the vertical position of the leaf node to be bound to the root. At step 1202, x is initialized to zero. At step 1203, the device computes i.sym.1, where “.sym.” denotes an exclusive-OR operation. Equivalently, step 1203 could be defined as y=i+1−2(i mod 2). At step 1204, if y is less than the total number of level x nodes (hashes) then N.sub.x,y is added to the list of hashes binding the specified leaf to the root. At step 1205, i is divided by 2 and rounded upward to find the vertical position of the level x+1 node leading to the root. At step 1206, n is updated to equal the number of level x+1 nodes. At step 1207, x is incremented. At step 1208, the device tests whether n is larger than 1 and, if so, loops back to step 1203.

To summarize, the confirmation issuer obtains the hash tree and signed root, receives a confirmation request, and constructs and issues the confirmation. When the hash tree is about to expire or a new tree is available, the confirmation issuer obtains an updated tree.

Verification

FIG. 13 outlines the steps taken by a verifier to use a confirmation message stored in a computer readable memory to cryptographically determine the status of a candidate data item with respect to the list. At step 1301, the verifier first uses the tree issuer's public key (which is assumed to be previously known and trusted) to check the digital-signature on the root node. At step 1302, the verifier then checks the date and time of the tree's issuance, along with any other auxiliary information signed with the root, to ensure that the tree is acceptable. At step 1303, the verifier confirms that the leaf node is representative of the data item. In particular, the leafs lesser range endpoint should be no larger than the data item and the larger range endpoint should be no smaller than the data item. At step 1304, the verifier uses the supporting nodes to check the cryptographic binding between the leaf node and the root node (FIG. 14 shows the steps required to verify the cryptographically binding between a leaf node and the root node in a binary tree). If any steps fail, the verifier skips to step 1308 and the confirmation is invalid. If all steps above are successful, the verifier checks at step 1305 whether either endpoint of the leaf node's range equals the candidate data item. If the candidate data item lies between the endpoints of the range, the verifier concludes at step 1306 with assurance that the item is not on the list. If the item in question equals one of the range endpoints, the verifier concludes at step 1307 with assurance that the item is on the list.

FIG. 14 outlines the process of using a set of supporting nodes to verify the cryptographic binding between the leaf node representative of the candidate data item and the root node. At step 1401, the variable i is initialized to the number of the leaf node in the tree, n is initialized to the number of nodes in the tree, x is initialized to zero, R is initialized to the leaf node (i.e., N.sub.0,i), and k is initialized to the number of supporting hashes provided. Note that n was checked along with the digital-signature on the root node. At step 1402, the device checks whether i is even and equal to n−1. If so, the device skips directly to step 1408, but otherwise the device proceeds to step 1403 and increments j. At. step 1404, the device ensures that j (the number of supporting hashes used) never exceeds k (the total number of supporting hashes provided). At step 1405, the verifier determines whether i is even or odd. If i is odd, the verifier proceeds to step 1406 where the new value for R is found by concatenating the existing R with the next supporting hash (“.vertline.” denotes concatenation) and hashing the result with a cryptographic hash function. If i is even, the verifier proceeds instead to step 1407, where the new value for R is found by concatenating the existing next supporting hash with the existing R (in the opposite order from step 1406) and hashing the result with a cryptographic hash function. After step 1406 or 1407, the verifier proceeds to step 1408 and divides i by 2 (rounding upward), divides n by 2 (rounding upward), and increments x. At step 1409 the verifier checks whether the main loop is complete, returning to step 1402 if n has not yet reached one. If the loop has finished, the verifier finally checks, at step 1411, whether R corresponds to the expected value of the root node from the confirmation. If R corresponds to the root node, the verifier concludes at step 1412 that the binding is good. If R does not correspond to the root node, the verifier concludes at step 1413 that the binding is bad.

FIG. 15 outlines the operation of a system which uses the invention to determine whether certificates have been revoked. The tree issuer 1501 constructs a list of revoked certificates by obtaining CRLs or other revocation messages 1502. The tree issuer then constructs an interval hash tree including the digitally signed root node(s). The confirmation issuer 1503 obtains the tree's signed root from the tree issuer over a communications channel. The confirmation issuer also obtains, typically also from the tree issuer, the rest of the tree or the leaf nodes needed to reconstruct the tree. The owner of a certificate 1504 submits its certificate to the confirmation issuer, which responds with a confirmation. The certificate holder can then provide the confirmation along with its certificate to certificate acceptors 1505, which each verify the confirmation message to confirm that the certificate has not been revoked. Participants in the protocol can verify the operation of the tree issuer to detect attempts at fraud. In particular, the tree should include all revoked certificates with no unauthorized additions. For every certificate included in the tree, the tree issuer should be able to provide a CRL or other acceptable evidence of revocation. In some cases, such as if a CA stops issuing CRLs, the tree issuer can optionally define alternate mechanisms for adding entries to the list. In general, the tree issuer can determine the criteria for including items in the list, allowing the addition of new revocation mechanisms, such as revocation by certificate holders. Even so, the operation of the tree issuer is open to public scrutiny. In particular, third parties can verify that the tree's leaf nodes specify only properly-revoked certificates and that no revoked certificates were omitted. The third party can also confirm that the leaf nodes' ranges were constructed properly and detect any other abnormalities.

Those skilled in the art will appreciate that many simple variant forms of the invention are possible. For example, in another embodiment of the invention, the hash tree can be constructed using the sorted list of items (rather than ranges) as leaf nodes, in which case confirmations will consist of a pair of adjacent leaf nodes whose values span the candidate item, the intermediate nodes connecting the leaf nodes to the root, and the digitally-signed root. It is also possible to combine the functionality of the tree issuer and confirmation issuer within a single entity. In yet another embodiment of the invention, a trusted confirmation issuer can generate digitally-signed assurances as to the status of candidate items on the list, rather than including a chain of nodes from the interval hash tree as part of the confirmation. Finally it is also possible for the confirmation issuer to issue confirmations without receiving an explicit request.

CONCLUSIONS

Accordingly, the reader will see that this invention can be used to efficiently and securely demonstrate the presence or absence of items on a list. Traditional solutions to this problem are inefficient in that an amount of data must be downloaded that is proportional to the number of items on the list. In contrast, the present invention provides tremendous savings for large lists. For example, by using binary interval hash trees, the amount of data required is proportional to the base-2 logarithm of the total list size. Construction of such hash trees is easy, requiring only (2n−1) cryptographic hash operations, where n is the number of leaves in the tree. Furthermore, construction of confirmation messages can be done efficiently and easily using insecure hardware since no private key operations are performed by the confirmation issuer.

Reliable and efficient verification of certificate revocation status is absolutely essential for secure World Wide Web transactions, Internet-based EDI, distributed design and manufacturing collaboration, financial transaction security, secure exchange of electronic mail, communication of medical records, and other applications requiring digital certificates. Using this invention, parties holding digital certificates can obtain tree leaves corresponding to their own certificates and supply the tree and corresponding signature information along with the certificate. This eliminates the need for certificate recipients to independently download a CRL. Furthermore, the number of extra network connections involved in certificate revocation status is small, since a certificate holder can use a single nonrevocation proof for many transactions.

Although the description above contains many specificities, these should not be construed as limiting the scope of the invention but merely providing illustrations of some of the exemplary embodiments thereof. For example, the security system can be used with many sorts of data, including but not limited to lists of revoked certificates, revoked digital signatures on computer-executable code (such as executable code, object code, source code, interpreted code, etc.), lists of other types of revoked digital signatures of other types, lists of authorized users, lists of unauthorized users, lists of stolen credit card numbers, and lists of bad checks. In general, the invention is useful whenever it is necessary to determine in a secure manner whether or not a particular value is on a list. The system can be implemented using almost any computer technology, including almost any software language (Pascal, C, C++, assembly language, FORTRAN, etc.) or integrated circuit manufacturing technology. 

1. A computer readable medium that encodes (i) only a selected subportion of a tree and (ii) a digitally signed root node thereof for use in cryptographically demonstrating whether a given data item is represented in said tree, the computer readable encoding made by a method comprising the steps of: sorting a plurality of data items belonging to a superset thereof; deriving a plurality of ranges using adjacent pairs of data items in said sorted plurality of data items as endpoints such that all data items in said plurality of data items are at endpoints of said plurality of ranges and such that all other data items in said superset fall in-between the endpoints of said plurality of ranges; generating a hash tree having leaf nodes that represent the plurality of ranges; digitally signing a root node of said tree; and encoding said digitally signed root node and said selected subportion of said tree for supply in the computer readable medium.
 2. The computer readable encoding made by the method of claim 1, wherein said step of generating said tree includes the step of forming leaf nodes from endpoints of said plurality of ranges.
 3. The computer readable encoding made by the method of claim 2, wherein said step of generating said tree includes the step of forming an adjacent pair of leaf nodes from different endpoints of one of said plurality of ranges.
 4. The computer readable encoding made by the method of claim 1, wherein said step of generating said tree includes the step of forming each of a plurality of the leaf nodes from the endpoints of a different one of said plurality of ranges.
 5. The computer readable encoding made by the method of claim 1, wherein said plurality of data items identify digital certificates sharing an attribute.
 6. The computer readable encoding made by the method of claim 5, wherein said attribute is that the digital certificates are revoked.
 7. The computer readable encoding made by the method of claim 1, wherein said plurality of data items identify digital signatures.
 8. The computer readable encoding made by the method of claim 1, wherein said plurality of data items identify digital signatures on binary code.
 9. The computer readable encoding made by the method of claim 1, wherein said plurality of data items identify revoked credit cards.
 10. A computer readable medium that encodes a response message, the computer readable encoding made by a method comprising the steps of: receiving a request message requesting whether a first data item is one of a plurality of data items belonging to a superset of data items; selecting a range that is derived from a pair of data items in said plurality of data items that defines the smallest range that includes said first data item, wherein the first data item is not one of the plurality of data items if the first data item is in-between the endpoints of the selected range, and wherein the first data item is one of said plurality of data items if said first data item is on one of the endpoints of the selected range; determining, for a tree having leaf nodes that represent ranges derived from adjacent pairs of said plurality of data items in a sorted list of said plurality of data items, a path through said tree from said selected range to a first of a set of root nodes; and generating the response message and supplying an encoding thereof in the computer readable medium, the response message including: data identifying said selected range in said response message, a set of nodes in said tree such that each node in said set of nodes and at least a previously identified node on said path can be combined to identify a previously unidentified node on said path, until said first root node is identified, the set of nodes excluding at least certain nodes on the path from the response message, and a digitally signed representation of the first root node in said response message.
 11. The computer readable encoding made by the method of claim 10, wherein the endpoints of the selected range are independently hashed and then hashed together to generate a node in the tree.
 12. The computer readable encoding made by the method of claim 10, wherein each leaf node specifies one of one range, an endpoint of one range, a hashed range, and a hashed endpoint of one range.
 13. The computer readable encoding made by the method of claim 10, wherein said plurality of data items identify digital certificates sharing an attribute.
 14. The computer readable encoding made by the method of claim 13, wherein said attribute is that the digital certificates are revoked.
 15. The computer readable encoding made by the method of claim 10, wherein said plurality of data items identify digital signatures.
 16. The computer readable encoding made by the method of claim 10, wherein said plurality of data items identify digital signatures on binary code.
 17. The computer readable encoding made by the method of claim 10, wherein said plurality of data items identify revoked credit cards.
 18. A program product encoded in one or more computer readable media for installation on computer configurable to (i) transmit a request message as to whether a first data item is one of a plurality of data items belonging to a superset of data items and to (ii) receive a response message that includes a digitally signed representation submitted to be a root node of a tree having leaf nodes that represent ranges, the ranges derived from adjacent pairs of data items in a sorted list of said plurality of data items, data identifying the range that includes said first data item, and a set of nodes in said tree sufficient to generate said root node starting from said range, the computer program product comprising: software executable on the computer to determine if said first data item is one of said plurality of data items based on said range, wherein the first data item is not one of the plurality of data items if the first data item is in-between the endpoints of the selected range, and wherein the first data item is one of said plurality of data items if said first data item is on one of the endpoints of the selected range; the software further executable to generate said root node using said range and the set of nodes and to determine if said received digitally signed representation matches said root node.
 19. The computer program product of claim 18, wherein said set of nodes includes nodes that together with a node on a path from the range to the root node can be used to generate a next node on the path, but excluding at least some nodes that are on the path.
 20. The computer program product of claim 18, wherein each leaf node specifies one of one range, an endpoint of one range, a hashed range, and a hashed endpoint of one range. 